import { IRouteComponentProps } from 'umi'
import MyHeader from '@/components/header'
import MyFooter from '@/components/footer'
import React from 'react'
import styles from './index.less';

export default function Layout({ children, location, route, history, match }: IRouteComponentProps) {
  return <React.Fragment>
      <MyHeader />
      <main className={styles.main}>
        <div className="container">{children}</div>
      </main>
      <MyFooter />
  </React.Fragment>
}
